#ifndef RECTANGLETOOLFRAME_H
#define RECTANGLETOOLFRAME_H

#include <wx/mdi.h>
#include <wx/minifram.h>
#include <wx/event.h>

class D_DrawFrm;
class wxStaticText;
class wxTextCtrl;
class D_DrawBaseElement;
class D_DrawRectangleElement;

class RectangleToolFrame : public wxMiniFrame{
	public:
	RectangleToolFrame(D_DrawFrm *parent, wxWindowID id = -1, const wxString &title = wxT("Rectangle Element"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(150, 350), long style = wxCAPTION);
	virtual ~RectangleToolFrame();
	virtual void Update(D_DrawBaseElement* element);
	void GoBack(wxFocusEvent& event);
	void GoForward1(wxFocusEvent& event);
	void GoForward2(wxChildFocusEvent& event);
	void OnIdle(wxIdleEvent& event);
	void SetElement(D_DrawBaseElement* element);
	void TextUpload1(wxCommandEvent& event);
	void TextUpload2(wxCommandEvent& event);
	void TextUpload3(wxCommandEvent& event);
	void TextUpload4(wxCommandEvent& event);
	void TextUpload5(wxCommandEvent& event);
	
	protected:
	int m_vertical_offset;
	D_DrawBaseElement* m_element;
	D_DrawFrm* m_parent;
	private: 
	bool GetInteger(wxString string, int& value);
	wxStaticText* m_text1;
	wxStaticText* m_text2;
	wxStaticText* m_text3;
	wxStaticText* m_text4;
	wxStaticText* m_text5;
	wxTextCtrl* m_text_c1;
	wxTextCtrl* m_text_c2;
	wxTextCtrl* m_text_c3;
	wxTextCtrl* m_text_c4;
	wxTextCtrl* m_text_c5;
		
	DECLARE_EVENT_TABLE();
	};

#endif